<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/ad.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<style>
table tr td{ text-align:center;}
</style>
<title></title>
<script type="text/javascript">
function get_checked_faq_id()
{
	var faq_id = $('[name = faqlist]:checked').val();
	return faq_id;
}
function get_checked_faq_name()
{
	var faq_id = get_checked_faq_id();
	if(faq_id)
	{
	   return $("#faq_name_"+faq_id).val();
	}
	return '';
}
function  get_checked_faq_type()
{
    var faq_id = get_checked_faq_id();
	if(faq_id)
	{
	   return $("#faq_type_"+faq_id).val();
	}
	return '';
}
</script>
</head>
<body style="width:710px;">
<form method="POST" action="./faq_comment.php?action=faq_list">
 <img height="22" border="0" width="26" alt="SEARCH" src="images/icon_search.gif">
        <!-- 分类 -->
    评论类型：<select name="faq_type" style="width:100px;">
	<option value="0">所有类型</option>
	<option value="1" <{if $faq_type == '1'}> selected="selected" <{/if}> >文章评论</option>
	<option value="2" <{if $faq_type == '2'}> selected="selected" <{/if}>  >视频评论</option>
	<option value="3" <{if $faq_type == '3'}> selected="selected" <{/if}>  >在线帮助评论</option>
	</select>
    文章标题：<input type="text" size="25" name="faq_title" value="<{$faq_title|escape}>">
	<input type="hidden" id="co_new_id" name="co_new_id" value="<{$co_new_id}>" />
	<input type="hidden" id="co_type" name="co_type" value="<{$co_type}>" />
    <input type="submit" class="button" name="search" value=" 搜索 ">

</form>
<form>
 <{if count($faq_info)<=0}>
  <h2 style="text-align:center;">没有数据</h2>
  <{else}>
  <br />
   <table width="100%" cellspacing="1" cellpadding="2" id="list-table" class="list-div"  style="margin-top:10px;" >
  
    <tr>
     
      <th width="10%">文章ID</th>
      <th width="60%">文章标题</th>
      <th width="20%">文章类型</th>
	  <th width="10%">选择</th>
    </tr>
    <{foreach from=$faq_info key=key item=info}>
	  <tr>
      <td width="10%"><{$info.id}></td>
      <td width="60%"><{$info.title}></td>
     
      <td width="20%"><{if $info.type == 1}>文章评论<{elseif $info.type == 2 }>视频评论 <{else}> 在线帮助评论<{/if}></td>
      <td width="10%"><input type="radio" name="faqlist"   <{if $co_new_id == $info.id && $info.type == $co_type }> checked="checked" <{/if}> id="faqlist_<{$info.id}>" value="<{$info.id}>"  >
	  <input type="hidden" name="faq_name"  value="<{$info.title|escape}>" id="faq_name_<{$info.id}>" />
	  <input type="hidden" name="faq_type_<{$info.id}>" id="faq_type_<{$info.id}>" value="<{$info.type}>" />
	  </td>
	 </tr>
    <{/foreach}>
	 <tr >
	   
	    <td colspan="11"  > <{$page_url}> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 共有 <span id="total"><{$total}> </span>条记录</div></td>
	</tr>
  </table>
<{/if}>
</form>
</body>
</html>
